import {
  IsEmpty,
  IsInt,
  IsNotEmpty,
  IsOptional,
  IsString,
} from 'class-validator';

export class CreateDictItemDto {
  @IsNotEmpty()
  @IsInt()
  dictId: number;

  @IsNotEmpty()
  @IsString()
  label: string;

  @IsNotEmpty()
  @IsString()
  value: string;

  @IsInt()
  @IsOptional()
  status?: number;

  @IsString()
  @IsOptional()
  remark?: string;
}
